import { createI18n } from 'vue-i18n'
import zhCn from './lang/zh_cn'
import enUs from './lang/en-us'
import ruRu from './lang/ru-ru'

const i18n = createI18n({
  legacy: false, // 设置为 false，启用 composition API 模式
  locale: localStorage.getItem('localeLang') || 'ruRu',
  messages: {
    zhCn,
    enUs,
    ruRu
  }
})
export default i18n
